package com.lzhsite.technology.designPattern.bridgems.GeneralImplement;
/**
 * jdbc规范使用到主要涉及的设计模式：退化的桥接模式
 * @author lzhcode
 *
 */
public class BridgeTest {
    public static void main(String[] args) {
        Abstraction abstraction = new RefinedAbstraction();

        //调用第一个实现类
        abstraction.setImplementor(new ConcreateImplementorA());
        abstraction.operation();

        //调用第二个实现类
        abstraction.setImplementor(new ConcreateImplementorB());
        abstraction.operation();

    }
}